  <?php

	foreach ($elementsInSet as $key=>$info){
		$elementName = $info['elementName'];
  	$elementRecord = $info['element'];
		if ($info['isShowable'] and !$info['isEmpty']){
    	$metadataArray[$key]['info'] = html_escape(__($elementName));
    	$metadataArray[$key]['value'] = '';
			foreach ($info['texts'] as $text){
				if ($info['elementName']=='URL') $metadataArray[$key]['value'] .= '<a href="'.$text.'" target="_blank">'.$text.'</a><br/>';
			  else $metadataArray[$key]['value'] .= $text.'; ';
			}
		}
	}

	if(count($metadataArray) > 0){
		foreach ($metadataArray as $etadata){
			$etadata['value']= preg_replace("/; $/", '', $etadata['value']);
			echo '<tr><td class="meta-name">'.$etadata['info'].':</td><td class="meta-value">'.$etadata['value'].'</td></tr>';
		}
	}

	?>
